// 引用封装好的数据库连接对象
const mongoose = require('../config/db')
const { Schema } = mongoose

const roleSchema = new Schema({
  name: { type: String, required: true, unique: true }
  // ... 其他字段
})

const Role = mongoose.model('Role', roleSchema)

module.exports = Role
